﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BasicData.Infrastructure.InProfaces
{
    public interface IBaseRepository<T> where T : class
    {
        Task<int> Add(T entity);    

        Task<int> Update(T entity);

        IQueryable<T> GetAll();

        /// <summary>
        /// 批量修改
        /// </summary>
        /// <param name="entitys"></param>
        /// <returns></returns>
        public Task<int> UpdateRanhes(List<T> entitys);
    }
}
